<!-- /* Description for file.
 * 收费明细
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/users
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0628
 * @lastmodified  张海杰2011年0721
 */
 -->
 
<?php
echo $html->css ( 'jquery-validate/css/screen');
echo $javascript->link('jquery-1.4.2');
echo $html->css('start/jquery-ui-1.8.2.custom');
echo $javascript->link('jquery-ui-1.8.2.custom.min');

?>

<script type="text/javascript">
//添加验证
$(document).ready(function() {
	$.validator.setDefaults({       
		 submitHandler: function(form) {    
		  form.submit();    
		}       
	});   
			
	$("#FeeitemSaveForm").validate({
		rules: {
			"data[Feelist][feeTime]":{
			required: false,dateISO:true
			},//收费期限
			"data[Feeitem][explain]":{
			required: false
			}//款项说明
		},
		messages:{},
		focusInvalid:false,
		onkeyup:false,
		errorPlacement:function(error, element){error.appendTo(element.parent());}
	});
});
//验证结束
</script>

<script type="text/javascript">
	$(function(){
		$(".datepickerSpan :input").datepicker({
			inline: true
		});
		 $('.datepickerSpan :input').datepicker('option', {dateFormat: "yy-mm-dd"});
		 $('.datepickerSpan :input').datepicker( "option", "closeText", 'X' );
	});
</script>
 <script type="text/javascript">
	$(function()
	{
		$("#close").click(function(){		
			window.close();							
		});
	});
</script>

<script type="text/javascript">
  var message="<?php echo $message;?>";
  if(message!="")
  {
	window.opener.tablereload(message);
 	window.close();
  }
</script>

<script type="text/javascript">
	function mycheck() {
		$("#FeeitemSaveForm").submit();	
	}
</script>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Feelists  Select Management');//一级目录
										   echo '>';
										   echo __('Feelists  Select');//一级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('增加款项',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<?php echo $form->create('Feeitem',array('action'=>'save','type'=> 'post'));?>
<div class="tabflex">
<fieldset><legend><?php __('增加款项');?></legend>
<table width="100%" cellspacing="0" cellpadding="0" border="0"
	style="text-align: left">
	<tr>
	<td width="100"></td>
	<td width="70">项目编号:</td>
	<td width="300"><?php echo $form->input('Feelist.projectCode',array('options'=>$op1,'class' => 'TextBoxE3','div'=>false,'label'=>false));?></td>
	<td ></td>
	<td width="50"></td>
	<td width="100">顾问:</td>
	<td width="300"><?php echo $form->input('Feelist.adviser',array('options'=>$op,'class' => 'TextBoxE3','div'=>false,'label'=>false));?></td>
	<td></td>
	</tr>
	<tr>
	<td width="100"></td>
	<td width="70">状态:</td>
	<td width="300"><?php echo $form->input('Feelist.status',array('options'=>$op2,'class' => 'TextBoxE3','div'=>false,'label'=>false));?></td>
	<td ></td>
	<td width="50"></td>
	<td width="100">付款方式:</td>
	<td width="300"><?php echo $form->input('Feelist.paymentMethod',array('options'=>$op3,'class' => 'TextBoxE3','div'=>false,'label'=>false));?></td>
	<td></td>
	</tr>
	<tr>
	<td width="100"></td>
	<td width="70">收费期限:</td>
	<td width="300">
	<span class="datepickerSpan">
	<?php echo $form->input('Feelist.feeTime',array('class' => 'TextBoxE3','div'=>false,'label'=>false));?>
	</span>
	</td>
	<td ></td>
	<td width="50"></td>
	<td width="100"></td>
	<td width="300">
	</td>
	<td></td>
	</tr>
	<tr>
	<td width="100"></td>
	<td width="70" style="vertical-align:top;">款项说明:</td>
	<td  colspan="6"><?php echo $form->textarea('Feeitem.explain',array('class' => 'TextArea1 txtOut','div'=>false,'label'=>false));?></td>
	</tr>
</table>
</fieldset>

	<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="50"></td>
		<td width="100"><?php echo $form->button('确定',array('type'=>'button','class'=>'btn2','onclick'=>'mycheck()'));?>  <!-- __('reset', true)取消-->
		<td width="100"><?php echo $form->button('关闭',array('class'=>'btn2','id'=>'close'));?>  <!-- __('reset', true)取消-->
		</td>
	</tr>
</table>
<?php echo $form->end();?>
</div>